<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%--jstl을 쓰기 위해 사용 --%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %><%--숫자 포맷을 사용하기 위해 사용 --%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"  prefix="fn"%><%--함수들을 이용하기 위해 사용 --%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<!--<script type="text/javascript" src="script/sms_riskI_script.js"></script>-->
</head>
<body>
<div class="box">
	<h4 class="white">위험 등급 결정 기준</h4>
	 <div class="box-container2">
		 <form name="mrlevel" action="riskIAction.do" method="post">
		<input type="hidden" name="mode" value="mrlevel_insert"></input>
		 	<table class="insertTable" style="width: 740px">
	   			<tfoot>
	   				<tr>
	   					<td>
	                     	<div class="align-right"><a href="#" class="button" onclick="riskIWrite('mrlevel');return false;"><span>저장</span></a>
	                     	<a href="#" class="button" onclick="javascript: riskICancleWrite('mrlevel')"><span>닫기</span></a></div>
	                     </td>
	   				</tr>
	   			</tfoot>
	   		</table>
	   		<table class="insertTable" style="width: 740px">
	   			<tbody>
	   				<tr>
									<td align="center" width="33%" valign="top" style="border: none">
									<!-- 내용 테이블1 -->
										<table class="insertTable">
											<colgroup>
												<col />
												<col width="70px"/>
											</colgroup>					
											<thead>
												<tr>
													<th colspan="2" height="30px" class="col-rowspanMid">위험발생가능성</th>
												</tr>
											</thead>
											<tbody>
											<c:forEach var="rbList" items="${requestScope.rbList}" varStatus="status">
												<tr>
													<td>
														<input type="text" name="rbBaseNm" id="rbBaseNm${status.index+1 }" value="${rbList.base_lev2 }" maxlength="30"></input>
													</td>
													<td>
														<input type="text" name="rbBaseCnt" id="rbBaseCnt${status.index+1 }"  onkeydown='javascript: evKey(event);' maxlength="3" size="3" onkeyup="javascript: inputCheckSpecial(this);" value="<fmt:formatNumber value="${rbList.base_cnt }" pattern="0"/>"></input>
													</td>
												</tr>
											</c:forEach>
											</tbody>
										</table>
									<!-- 내용 테이블1 -->
									</td>
									
									
									<td align="center" width="33%" valign="top" style="border: none">
									<!-- 내용 테이블2 -->
										<table class="insertTable">
											<colgroup>
												<col />
												<col width="70px"/>
											</colgroup>					
											<thead>
												<tr>
													<th colspan="2" height="30px" class="col-rowspanMid">취약성 등급</th>
												</tr>
											</thead>
											<tbody>
											<c:forEach var="vlList" items="${requestScope.vlList}" varStatus="status">
												<tr>
													<td>
														<input type="text" name="vlBaseNm" id="vlBaseNm${status.index+1 }" value="${vlList.base_lev2 }" maxlength="30"></input>
													</td>
													<td class="aligncenter">
														<input type="text" name="vlBaseCnt" id="vlBaseCnt${status.index+1 }" onkeydown='javascript: evKey(event);' maxlength="3" size="3" onkeyup="javascript: inputCheckSpecial(this);" value="<fmt:formatNumber value="${vlList.base_cnt }" pattern="0"/>"></input>
													</td>
												</tr>
											</c:forEach>
											</tbody>
										</table>
									<!-- 내용 테이블2-->
									</td>
									
									<td align="center" width="33%" valign="top" style="border: none">
									<!-- 내용 테이블3 -->
										<table class="insertTable">
											<colgroup>
												<col />
												<col width="70px"/>
											</colgroup>					
											<thead>
												<tr>
													<th colspan="2" height="30px" class="col-rowspanMid">사업영향도 등급</th>
												</tr>
											</thead>
											<tbody>
											<c:forEach var="akList" items="${requestScope.akList}" varStatus="status">
												<tr>
													<td>
														<input type="text" name="akBaseNm" id="akBaseNm${status.index+1 }" value="${akList.base_lev2 }" maxlength="30"></input>
													</td>
													<td class="aligncenter">
														<input type="text" name="akBaseCnt" id="akBaseCnt${status.index+1 }" onkeydown='javascript: evKey(event);' maxlength="3" size="3" onkeyup="javascript: inputCheckSpecial(this);" value="<fmt:formatNumber value="${akList.base_cnt }" pattern="0"/>"></input>
													</td>
												</tr>
											</c:forEach>
											</tbody>
										</table>
									<!-- 내용 테이블3-->
									</td>
	   				</tr>
	   			</tbody>
	   		</table>
   		</form>
	</div>
</div>
</body>
</html>
